#!/usr/local/bin/thrift --java --py
# thrift --gen java -out src/main/java src/main/resources/thriftgen/idcenter.thrift

namespace java com.paas.demo.thrift
namespace py com.paas.demo.thrift

/* ---------------------------------------------------------------------------------
 *                            Services
 ----------------------------------------------------------------------------------- */
service IdCenterService {

    i64 getId(1:string agent),

    list<i64> getIds(1:string agent, 2:i32 count),

    string getIdString(1:string agent),

    i64 getTime(),

    i64 getWorkerId(),

    i64 getDataCenterId(),
}
